<head>
<link rel="stylesheet" type="text/css" href="panel.css">
</head>

<body>
<?php
$padding=$_POST['padding'];
$FontSize=$_POST['FontSize'];
$Width=$_POST['Width'];
$Top=$_POST['Top'];
$Left=$_POST['Left'];
$TextAlign=$_POST['TextAlign'];
$BorderColor=$_POST['BorderColor'];
$BGColor=$_POST['BGColor'];
$FontColor=$_POST['FontColor'];
$BGColorHover=$_POST['BGColorHover'];
$FontColorHover=$_POST['FontColorHover'];
$BorderColorHover=$_POST['BorderColorHover'];
$TextAlignhover=$_POST['TextAlignhover'];

$PoleVertical1=$_POST['name_file1'];
$PoleVertical2=$_POST['name_file2'];
$PoleVertical3=$_POST['name_file3'];
$PoleVertical4=$_POST['name_file4'];
$PoleVertical5=$_POST['name_file5'];
$PoleVertical6=$_POST['name_file6'];
$PoleVertical7=$_POST['name_file7'];
$PoleVertical8=$_POST['name_file8'];
$Page=$_POST['Page'];

$text .="<style>"."\n";
$text .="ul.MenuBarVertical{position: absolute; margin: 0; padding: $padding; list-style-type: none;"; 
$text .="font-size: $FontSize; cursor: default; ";
$text .="width: $Width;";
$text .="top: $Top;";
$text .="left: $Left;}"."\n";
$text .="ul.MenuBarVertical li {margin: 0;	padding: 0;	list-style-type: none;font-size: 100%; position: relative; text-align: $TextAlign; ";
$text .="cursor: pointer; width: $Width; ";
$text .="font-style: $FontStyle;}"."\n";
$text .="ul.MenuBarVertical a {display: block; cursor: pointer;text-decoration: none; border: 1px solid $BorderColor; ";
$text .="background-color: $BGColor; ";
$text .="color: $FontColor;}"."\n";
$text .="ul.MenuBarVertical a:hover {background-color: $BGColorHover; ";
$text .="color: $FontColorHover ;";
$text .="border: 2px solid $BorderColorHover; ";
$text .="text-align: $TextAlignhover;}"."\n";
$text .="</style>"."\n";


$i=0;
$i<10;
if (!empty($PoleVertical1))
{$text .="\n "."<li><a href='$PoleVertical1.php'>"; $text .="$PoleVertical1</a></li>"."\n ";}
if (!empty($PoleVertical2))
{$text .="<li><a href='$PoleVertical2.php'>";$text .="$PoleVertical2</a></li>"."\n ";}
if (!empty($PoleVertical3))
{$text .="<li><a href='$PoleVertical3.php'>"; $text .="$PoleVertical3</a></li>"."\n ";}
if (!empty($PoleVertical4))
{$text .="<li><a href='$PoleVertical4.php'>"; $text .="$PoleVertical4</a></li>"."\n ";}
if (!empty($PoleVertical5))
{$text .="<li><a href='$PoleVertical5.php'>"; $text .="$PoleVertical5</a></li>"."\n ";}
if (!empty($PoleVertical6))
{$text .="<li><a href='$PoleVertical6.php'>"; $text .="$PoleVertical6</a></li>"."\n ";}
if (!empty($PoleVertical7))
{$text .="<li><a href='$PoleVertical7.php'>"; $text .="$PoleVertical7</a></li>"."\n ";}
if (!empty($PoleVertical8))
{$text .="<li><a href='$PoleVertical8.php'>"; $text .="$PoleVertical8</a></li>"."\n ";}




if (!empty($Page))
{
$file = fopen ("WWW/$Page.php", "a+");
fwrite ($file,$text);
fclose ($file);
}
?>

